#! /bin/sh

name=tar
version=1.35
revision=1
tarball_url="https://ftp.gnu.org/gnu/tar/tar-${version}.tar.xz"
tarball_blake2b="e1a200d21f433cd7d917dd979db16919a9167056ae62cf7d038a6118e56b2fe419cd4a396eee66f1f4dc13a8dc380e23f6ffd7ee0ca84e5dd9ad9411f60e002c"
hostdeps="gcc pkg-config"
deps="core-libs"

prepare() {
    autotools_recursive_regen
}

configure() {
        LIBS="-liconv -lintl" \
    autotools_configure \
        --enable-backup-scripts
}

build() {
    make -j${parallelism}
}

package() {
    DESTDIR="${dest_dir}" make install

    post_package_strip
}
